package com.speechb.modules.system.admin.service.impl;

import com.speechb.modules.system.admin.entity.SysUser;
import com.speechb.modules.system.admin.mapper.SysUserMapper;
import com.speechb.modules.system.admin.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author llj
 * @since 2019-10-03
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {
    @Autowired
    SysUserMapper sysUserMapper;
    @Override
    public String findPassword(String username) {
        return sysUserMapper.findPassword(username);
    }

    @Override
    public int updateSysUser(SysUser sysUser) {
        return sysUserMapper.updateSysUser(sysUser);
    }
}
